pub fn odd_fibnacci_sum(threshold: u32) -> u32 {
    let mut result: u32 = 0;
    let mut num1 = 0;
    let mut num2 = 1;
    while num2 < threshold {
        if num2 % 2 ==1 {
            result += num2;
        }
        let temp = num1 + num2;
        num1 = num2;
        num2 = temp;
    }
    return result;
}
